# -*- coding: utf-8 -*-
# @Author: Tim Liu
# @Date: 2025-01-08
# @Last Modified by: Cursor
# @Last Modified time: 2025-01-08

# @Description: Ontology Params for RAG

from fastapi import Depends
from core.dependencies import Paging, QueryParams

class OntologyParams(QueryParams):
    """
    Pagination
    """

    def __init__(
            self,
            params: Paging = Depends(),
            is_active: bool = None,
            description: str = None,
            name: str = None
    ):
        super().__init__(params)
        self.v_order = "desc"
        self.v_order_field = "create_datetime"
        self.is_active = is_active
        self.description = description
        self.name = ("like", name)